package com.project.yuepai.util;

import java.util.Random;
import java.util.UUID;

public class RandomUtil {

    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }
    static Random random = new Random();
    static int randomNumber;


    /**
     * 获取四到六位数的验证码
     * @return
     */
    public static String  getRandomNum() {
        randomNumber =  (random.nextInt(899999) + 10);
        return Integer.toString(randomNumber);
    }

}
